<template>
  <div>
    <!-- 123
    <br />
    <van-button type="primary">主要按钮</van-button>
    <van-button type="info">信息按钮</van-button>

    <van-nav-bar title="标题" left-text="返回" right-text="按钮" left-arrow />
    <div class="box">测试盒子</div> -->
    <router-view></router-view>
  </div>
</template>

<script>
// import request from '@/utils/request'
// import { getToken, setToken } from '@/utils/storage'
export default {
  name: 'App'
  // async created () {
  //   // const data = await request.post('/h5/user/register', {
  //   //   username: 'harry',
  //   //   password: '123456'
  //   // })
  //   const data = await request.post('/h5/user/login', {
  //     username: 'harry',
  //     password: '123456'
  //   })
  //   // console.log(data)
  //   console.log(data.data.token)
  //   setToken(data.data.token)
  //   console.log(getToken())
  // }
}
</script>

<style scoped lang="less">
.box {
  width: 300px;
  height: 300px;
  background-color: hotpink;
}
</style>
